<!-- api_docs -->
	<div class="doc-updated">
		<p>Updated on <?=date('H:i:s - d-M-Y', $last_update);?></p>
	</div>

	<div>
		<h2>Description</h2>
	  	<p><?=$info["desc"];?></p> 

		<div class="field text field-doc-resource-url">
			<h2>Resource URL</h2>
			<p><div class="odd"><?=base_url();?>rest/<?=$api;?>/<?=$action;?>.format</div></p>
		</div>

		<div class="field text field-doc-params">
			<h2>Parameters</h2>
			<div class="odd">
			<? foreach ($info["params"] as $param_name => $param_info): ?>
				<div class="parameter" id="api-param-<?=$param_name;?>">
				  <span class="param"><?=$param_name;?>
				  <? if (isset($param_info["required"]) && $param_info["required"] == TRUE): ?>
					<span class="required">required</span>
				  <? endif; ?>

				  </span>

				  <p><?=$param_info["desc"];?></p>
				  <p><strong>Type</strong>: <tt><?=$param_info["type"];?></tt></p>
				  <p><strong>Example</strong>: <tt><?=$param_info["example"];?></tt></p>
				</div>
			<? endforeach; ?>
			</div>
		</div>

		<div class="fieldgroup group-example-request">
			<h2>Example Request</h2>
			<div class="content">
				<p><?=show_code($command, "bash");?></p>
			</div>
			<h2>Example Output</h2>
			<div class="content">			
				<p><?=show_code($info["output_sample"], "javascript");?></p>
<!--
				<table>
					<tbody>
					<tr class="odd">
						<td>GET</td>
						<td class="geshifilter">

						<?=$command;?>

						</td>
					</tr>
					</tbody>
				</table>

				<div class="field text field-doc-examples">
					<div class="odd">
						<div class="geshifilter">
							<div class="c geshifilter-c">
								<ol>
									<li class="li1">
										<pre class="de1"><span class="sy0"><?=$info["output_sample"];?></span></pre>
									</li>
								</ol>
							</div>
						</div>
					</div>
				</div>
-->
			</div>
		</div>
	</div>
<!-- api_docs -->
